﻿using Microsoft.SharePoint;

namespace TennisSite.FeatureReceivers
{
    public class TennisSiteColumnsFeatureReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            using (SPWeb web = properties.Feature.Parent as SPWeb)
            {
                //SPFieldLookup countriesField = (SPFieldLookup)web.Fields["TennisCountry"];
                //countriesField.LookupList = "{" + web.Lists["Countries"].ID + "}";
            }
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {

        }

        public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        {

        }

        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {

        }
    }
}